package com.edfeff.nio;

import com.edfeff.bio.adapter.EchoAdapter;
import com.edfeff.bio.adapter.FileAdapter;
import com.edfeff.bio.http.ServerConfig;

import java.io.IOException;

public class Main {
    public static void main(String[] args) throws IOException {
        ServerConfig config = new ServerConfig();
//        config.setAdapterClass(EchoAdapter.class);
        config.setAdapterClass(FileAdapter.class);
        new ReactorSimpleHttpServer(config).start();
    }
}
